package com.序列化;

public class SerializeTest  {

    public static void main(String[] args) {

        SerializeTemplate serializeTemplate = new SerializeTemplate( "小明",10);

        byte [] bytes = SerializeUtil.serialize(serializeTemplate);


        String txt = new String (bytes);

        System.out.println(txt);



        SerializeTemplate serializeTemplate1 = SerializeUtil.deSerialize(bytes,SerializeTemplate.class);


        System.out.println(serializeTemplate1);


    }
}
